﻿@model MvcAtletIS.Models.LogOnModel

@{
    ViewBag.Title = "Prihlásenie";
}

<h2>Prihlásenie</h2>
<p>
    Zadajte meno a heslo, prosím.
</p>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@Html.ValidationSummary(true, "Prihlásenie nebolo úspešné. Zadajte správne meno a heslo.")

@using (Html.BeginForm()) {
    <div>
        <fieldset>
            <legend>Prihlasovacie údaje</legend>

            <div class="editor-label">
                Meno
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.UserName)
                @Html.ValidationMessageFor(m => m.UserName)
            </div>

            <div class="editor-label">
                Heslo
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.Password)
                @Html.ValidationMessageFor(m => m.Password)
            </div>

            <div class="editor-label">
                @Html.CheckBoxFor(m => m.RememberMe)
                Zapamätať prihlásenie
            </div>

            <p>
                <input type="submit" value="Prihlásiť" />
            </p>
        </fieldset>
    </div>
}
